<template>
  <div id="nav">
    
    <router-link to="/">主页</router-link> |
    <router-link to="/about">关于</router-link> |
    <router-link :to="{path:'/profile',
query:{name:'刘兵',age:25,height:1.88}}" active-class="active">
Profile
</router-link><br>
    <img src="./assets/logo.png">
  </div>
   <!-- <hr>
    <button @click="profileClick">profile</button>
  <hr> -->
  <router-view/>
</template>
// <script>
// import { useRouter } from 'vue-router'

// export default {
//   setup () {
//     const router = useRouter()
//     const profileClick = () => {
//       router.push({
//         path: '/profile',
//         query: {
//           name: '汪琼',
//           age: 18,
//           height: 168
//         }
//       })
//     }
//     return {
//       profileClick
//     }
//   }
// }
// </script>
<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 0px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
